
		{template 'common/header'} 
		<div class="panel panel-info">
	<div class="panel-heading" style="text-align: center;">奖项设置</div>
	<div class="panel-body">
		 <form class="form-horizontal"  id="form1" name="form1" method="post" action="<?php echo $this->createWebUrl('addaward');?>" enctype="multipart/form-data">
		 <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">活动名称:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="activityname" name="activityname" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填(活动名称必须和活动设置名称相同)</label>
		  </div> 
		 <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">一等奖奖品设置:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="award1" name="award1" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div> 
		 <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">一等奖奖品数量:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="awardnumber1" name="awardnumber1" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div>
		   <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">二等奖奖品设置:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="award2" name="award2" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div> 
		 <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">二等奖奖品数量:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="awardnumber2" name="awardnumber2" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div>
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">三等奖奖品设置:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="award3" name="award3" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div> 
		 <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">三等奖奖品数量:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="awardnumber3" name="awardnumber3" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填</label>
		  </div>
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">是否显示奖品数量:</label>
		    <div class="col-sm-4">
		     <input type="radio" name="is_use" value="1" checked="checked" />是
	         <input type="radio" name="is_use" value="0" />否
		    </div> 
		  </div>
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">一等奖中奖概率:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="probability1" name="probability1" >
		    </div> 
		      <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填：请添0-100</label>
		  </div> 
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">二等奖中奖概率:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="probability2" name="probability2" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填：请添0-100</label>
		  </div> 
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">三等奖中奖概率:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="probability3" name="probability3" >
		    </div> 
		    <label for="inputEmail3" class="col-sm-1 control-label" style="color:orange;text-align: left;">&nbsp;*必填：请添0-100</label>
		  </div> 
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">每人最多允许抽奖次数:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="maxnumberp" name="maxnumberp" >
		    </div> 
		  </div> 
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">每天抽奖次数:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="maxnumberd" name="maxnumberd" >
		    </div> 
		  </div> 
		  <div class="form-group">
		    <label for="inputEmail3" class="col-sm-4 control-label">兑奖密码:</label>
		    <div class="col-sm-4">
		    <input type="text" class="form-control" id="ticketpassword" name="ticketpassword" >
		    </div> 
		  </div> 
		  <!-- <div class="form-group" style="text-align: center;">
		    <div class="col-sm-4">
		  <input type="submit" class="form-control" value="提交" onclick="sub()"/>
		    </div> 
		  </div>  -->
		  <div class="form-group col-xs-12 col-md-12 " style="text-align:center;" >
		    <input type="button"  class="form-control" style="width:
		   100px;margin:0 auto; color: blue;"  value="提交" onclick="sub()" />
		  </div>
		    </form>
	</div>
</div>  
</div>
<script type="text/javascript">
function sub(){
 if($("#activityname").val()==''){
 alert("活动名称不能为空");
 return false;
 }
 if($("#award1").val()==''){
 alert("一等奖奖品设置不能为空");
 return false;
 }
 if($("#awardnumber1").val()==''){
 alert("一等奖奖品数量不能为空");
 return false;
 }
 if($("#award2").val()==''){
 alert("二等奖奖品设置不能为空");
 return false;
 }
 if($("#awardnumber2").val()==''){
 alert("二等奖奖品数量不能为空");
 return false;
 }
 if($("#award3").val()==''){
 alert("三等奖奖品设置不能为空");
 return false;
 }
 if($("#awardnumber3").val()==''){
 alert("三等奖奖品数量不能为空");
 return false;
 }
 if($("#probability1").val()==''){
 alert("一等奖中奖概率不能为空");
 return false;
 }
 if($("#probability2").val()==''){
 alert("二等奖中奖概率不能为空");
 return false;
 }
 if($("#probability3").val()==''){
 alert("三等奖中奖概率不能为空");
 return false;
 }
 $("#form1").submit();
}
</script>    
	{template 'common/footer'}
	
	
	

